package QianFeng07.IODemo2.DecoratorPattern;
/**
 * 具体的装饰者对象
 * 黑豆
 **/
public class BlackBeanDecorator extends Decorator{
    public BlackBeanDecorator(Drink drink) {
        super(drink);
    }

    @Override
    public float cost() {
        return super.cost() + 2.0f;
    }

    @Override
    public String description() {
        return super.description() + "+黑豆";
    }
}
